package com.recipedb.recipedb.service;

import com.recipedb.recipedb.entity.Ingredient;
import com.recipedb.recipedb.entity.RecipeIngredient;
import com.recipedb.recipedb.entity.RecipeIngredientId;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import java.util.Optional;

public interface RecipeIngredientService {
    RecipeIngredient save(RecipeIngredient entity);
    void deleteById(RecipeIngredientId id);
    Optional<RecipeIngredient> findById(RecipeIngredientId id);
    List<RecipeIngredient> findAll();
    Map<Ingredient, BigDecimal> findIngredientsByRecipeId(Long recipeId);
}